// components/c1/c1.js

import  {storeBindingsBehavior}   from  'mobx-miniprogram-bindings'
import  {store} from  '../../store/store'

Component({
   behaviors:[storeBindingsBehavior],
   storeBindings:{
      store,
      fields:{
         n1:'n1',
         n2:'n2'
      },
      actions:{
         updaten1:"updaten1"
      }
   },
   /**
    * 组件的属性列表
    */
   properties: {

   },

   /**
    * 组件的初始数据
    */
   data: {
      cc:'我是一个cc',
      cc2:'cc2'
   },

   /**
    * 组件的方法列表
    */
   methods: {
      btnc1(){
         this.updaten1(3)
      }
   }
})
